package com.ruoyi.recycle.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
public class CouponInfoVO implements Serializable {
    private static final long serialVersionUID = -307500281224109614L;
    @ApiModelProperty(value = "优惠券类型ID")
    private Long couponId;
    @TableId
    @ApiModelProperty(value = "优惠券号")
    private String couponNo;
    @ApiModelProperty(name = "qrCode", value = "Base64编码的二维码")
    private String qrCode;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(name = "couponName", value = "优惠券名称")
    private String couponName;
    @ApiModelProperty(name = "denomination", value = "优惠券面额")
    private BigDecimal denomination;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "effectStart", value = "有效时间(开始)")
    private Date effectStart;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "effectEnd", value = "有效时间(结束)")
    private Date effectEnd;
    @ApiModelProperty(name = "type", value = "优惠券类型,满减券,代金券")
    private String type;
    @ApiModelProperty(name = "shopName", value = "引流平台名称")
    private String shopName;
    @ApiModelProperty(name = "condition", value = "使用条件说明")
    private String conditionDetail;
}
